/**
 * Created by hxpeng on 2017/3/24.
 */

(function () {
    'use strict';

    angular.module('App.pages.dynamic')
        .service('DynamicModel', DynamicModel);

    function DynamicModel(API,$resource) {
        this.actions = {}

        this.actions.dynamicList = {
            method: 'POST',
            url: API + '/dynamic/dynamicList'
        }

        this.actions.saveDynamic = {
            method: 'POST',
            url: API + '/dynamic/saveDynamic'
        }

        this.actions.submitUploadImg = {
            method: 'POST',
            url: API + '/dynamic/submitUploadImg'
        }

        return $resource.call(this, this.url, this.params, this.actions)
    }

})();